﻿#include <iostream>
using namespace std;

int main()
{
	int a = 5;
	cout << "变量a"<<endl;
	cout << "a的值=" << "\t\t" << a << "\t" << "a的地址是:" << "\t\t" << &a << endl;
	int* p = &a;
	cout << "指针变量p" << endl;
	cout << "*p(a的值)=" << "\t" << *p << "\t" << "p的值(a的地址)=" << "\t\t" << p << "\t" << "p的地址是：" << "\t" << &p << endl;
	int** pp = &p;
	cout << "二级指针变量p" << endl;
	cout << "**pp(a的值)=" << "\t" << **pp << "\t" << "*pp(p的值(a的地址))=" << "\t" << *pp << "\t" << "pp(p的地址)=" << "\t" << pp << "\t" << "\tpp的地址是：" << "\t" << &pp << "\t" << endl;
}

